#include "epoll.hpp"

#include <string>
#include <cstdlib>

static void Usage(std::string proc)
{
    std::cout << "Usage: " << "\n\t" << proc << " port" << std::endl;
}

// ./epoll_server port
int main(int argc, char *argv[])
{
    if(argc != 2){
        Usage(argv[0]);
        exit(5);

    }
    int port = atoi(argv[1]);
    my_epoll::Epoll *se=new my_epoll::Epoll(port);

    se->InitEopll();
    se->Run();

    return 0;
}
